var mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');

var schema = new mongoose.Schema({ 
    name:String,
    price:String,
    count:String,
    img:String,
    intro:String,
    cateId: mongoose.Schema.ObjectId,
    date:{ type: Date, default: Date.now }
});
schema.plugin(mongoosePaginate);

var products = mongoose.model('product',  schema);
module.exports=products;